<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initAutoload(){
         Zend_Session::start();
		 Zend_Registry::set('salt', '23l4kjljaes652uasdf908');
        //email
        $config = array('auth' => 'login',
            'username' => 'contacto@alejandrolopezcaballero.com',
            'password' => '4lc4ld32012',
            'port' => '587'
        );
        $tr = new Zend_Mail_Transport_Smtp('webmail.alejandrolopezcaballero.com', $config);
        Zend_Mail::setDefaultTransport($tr);
    }

    protected function _initView()
        {
                // Initialize view
                $view = new Zend_View();
                $view->doctype('XHTML1_STRICT');
                $view->headTitle('Alejandro López Caballero');
                $view->skin = 'blues';
                $view->headMeta()->appendHttpEquiv('Content-Type','text/html; charset=utf-8');
                // Add it to the ViewRenderer
                $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper(
                        'ViewRenderer'
                );

                $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();

                $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');

                $viewRenderer->setView($view);

                Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

                // Return it, so that it can be stored by the bootstrap
                return $view;
        }
}

